<?php
require_once("php/adminPageManager.php");
?>
<?php include"header.inc.php"; ?>  
   <tr align="center">
   	    <td colspan="2">
			<TABLE id="Table6" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">													
				<TR>
					<TD width="200" valign="top" class="left_bg" align="right" ><br><?php include("left.inc.php");?></td>
					<td height="10" valign="top">			
						<table width="100%"  border="0" cellspacing="0" cellpadding="0">
						    <tr>
							    <td width="100%" valign="top" align="center">
									<table width="100%"  border="0" cellpadding="0" cellspacing="1" >
							          	<tr>
								            <td  align="left" background="images/heading_bg.gif" bgcolor="#FFFFFF" class="h1">
												<table   border="0" cellspacing="0" cellpadding="0" align="left" width="100%">
								              		<tr>
							    				       	<td height="42" background="images/bg3.gif" width="53"  class="h1" align="right"><img src="images/cp_icon.gif" width="25" height="25" hspace="5"></td>
											           	<td width="518" height="42" align="left"  background="images/bg3.gif" class="h1">Admin Content Manager</td>
															<td height="42" background="images/bg3.gif" width="222"  class="h1" align="right"><a href='adminPageAe.php' class="blue_txt" title="Add New Page"><u>Add New Page</u></a>&nbsp;&nbsp;</td>
                				              		</tr>
            									</table>
											</td>
							          	</tr>
							          	<tr>
								            <td height="300" align="center" valign="top" >
							              		<table width="100%"  border="0" cellpadding="0" cellspacing="1" bgcolor="#B1B1B1">
          	
          	<tr>
            <td height="350" align="center" valign="top" class="mainBoxBg">
			<br>
			<?php displaySessMesg(); ?>	<br>
			<table width="75%" border="0" cellpadding="3" cellspacing="1" bgcolor="#F0EEEC" class="tblBg">
				<form name="form_l" action="" method="post">
                <tr class="header_row">
                <td width="8%" align="center">Sr.No.</td>
                <td width="63%">Page Name </td>
                <td width="11%" align="center">Status</td>
                <td width="10%" align="center">Edit</td>
                <td width="8%" align="center"><input name="check_all" type="checkbox" class="style1" id="check_all2" onClick="checkall(this.form)" value="check_all"></td>
			  </tr>
              <?php 
			  if(mysql_num_rows($resPL)>0)
			  {
			  while($rowPL = mysql_fetch_array($resPL))
			  {
			  $i++;
			  if($rowClass == 'evenRow') $rowClass = 'oddRow';  else $rowClass = 'evenRow';
			  ?>
			  <tr class="<?=$rowClass?>">
                <td align="center" class="gray_txt"><?=$i?>.</td>
                <td><?=$rowPL['pageName']?></td>
				<td align="center"><?php
			      if($rowPL['status']==0){ echo "Inactive"; } else { echo "Active";}	
		 		?></td>
				

				<td align="center"><a href="adminPageAe.php?pageId=<?=$rowPL['pageId']?>" class="simple_links" title="View <?=$rowPL['adminPageName']?>"><img src="images/edit_icon.gif" width="16" height="16" border="0"></a></td>
                <td align="center"><input type="checkbox" name="chkIds[]" value="<?=$rowPL['pageId']?>"></td>
              </tr>
              <?php } 
			   if($rowClass == 'evenRow') $rowClass = 'oddRow';  else $rowClass = 'evenRow';
			  ?>
			  <tr align="right" class="<?=$rowClass?>">
                 <td colspan="5"><input name="Submit" type="submit" class="buttons" value="Active">
				 &nbsp;<input name="Submit" type="submit" class="buttons" value="Inactive">
				  &nbsp;<input name="Submit" type="submit" class="buttons" value="delete" onClick="return del()" > 
				   </td>
                 </tr>
              <?php  if($rowClass == 'evenRow') $rowClass = 'oddRow';  else $rowClass = 'evenRow';?>
			  <tr  class="<?=$rowClass?>">
                <td colspan="5" align="right"><?php echo rightPaging();?></td>
                </tr>
				<?php }else{ ?>
				<tr align="left" bgcolor="#FFFFFF">
	                <td height="25" colspan="5" class="redtxt"> Sorry, no record found.</td>
                </tr>
				<?php } ?>
				</form>
            </table>			</td>
          	</tr>
        	</table>
											</td>
							          	</tr>
					        	</table>
							</td>
					    </tr>
			    	</table>
				</td>
			</TR>
		</TABLE>
	</td>
</tr>
<?php include ("footer.inc.php"); ?>